using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;

namespace Koakuma.Game.AuctionUI
{
    public class AuctionItemView:MonoBehaviour,IPointerDownHandler
    {
        public Image icon;
        public Text txt_name;
        public Text txt_totalPrice;
        public Text txt_price;
        public Text txt_count;
        public int index;
        public Action<int> onAuctionitemClick;

        public void OnPointerDown(PointerEventData eventData)
        {
            onAuctionitemClick?.Invoke(index);
        }
    }
}
